package com.tubang.logistics.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.tubang.common.entity.BaseEntity;

/**
 * <p>
 * 货主运单表
 * </p>
 *
 * @author wsl
 * @since 2017-12-31
 */
@TableName("tb_shipper_order")
public class ShipperOrderEntity extends BaseEntity<ShipperOrderEntity> {

    private static final long serialVersionUID = 1L;

	/**
	 * 运单 订单 编号
	 */
	private String num;

    /**
     * 货主id
     */
	@TableField("user_id")
	private String userId;
    /**
     * 车辆类型
     */
	@TableField("container_type")
	private String containerType;
    /**
     * 车辆尺寸
     */
	@TableField("container_size")
	private Double containerSize;
    /**
     * 运费 元/吨
     */
	private Double carriage;
    /**
     * 运输总费用
     */
	private Double amount;
    /**
     * 是否开发票
     */
	@TableField("invoice_flag")
	private String invoiceFlag;
    /**
     * 结算周期：300-预付；301-到付；302-回单付
     */
	@TableField("pay_period")
	private String payPeriod;
    /**
     * 承运商
     */
	private String carrier;
    /**
     * 承运商手机号
     */
	@TableField("carrier_mobile")
	private String carrierMobile;

	/**
	 * 承运商 id
	 */
	@TableField("carrier_id")
	private String carrierId;


	/**
	 * 货品名称
	 */
	@TableField("goods_name")
	private String goodsName;



	/**
	 * 货品重量
	 */
	@TableField("goods_weight")
	private Double goodsWeight;


	/**
	 * 发货地址
	 */
	@TableField("addr_from")
	private String addrFrom;


	/**
	 * 收货地址
	 */
	@TableField("addr_to")
	private String addrTo;

	/**
	 * 成交单价
	 */
	@TableField("carriage_deal")
	private Double carriageDeal;


	/**
	 * 成交总价
	 */
	@TableField("amount_deal")
	private Double amountDeal;



	/**
     * 订单状态100-待接单；101-运输中；102-待确认；103已完成；104-异常运单
     */
	@TableField("status_code")
	private String statusCode;
	@TableField("status_code_desc")
	private String statusCodeDesc;


	public String getUserId() {
		return userId;
	}

	public ShipperOrderEntity setUserId(String userId) {
		this.userId = userId;
		return this;
	}

	public String getContainerType() {
		return containerType;
	}

	public ShipperOrderEntity setContainerType(String containerType) {
		this.containerType = containerType;
		return this;
	}

	public Double getContainerSize() {
		return containerSize;
	}

	public ShipperOrderEntity setContainerSize(Double containerSize) {
		this.containerSize = containerSize;
		return this;
	}

	public Double getCarriage() {
		return carriage;
	}

	public ShipperOrderEntity setCarriage(Double carriage) {
		this.carriage = carriage;
		return this;
	}

	public Double getAmount() {
		return amount;
	}

	public ShipperOrderEntity setAmount(Double amount) {
		this.amount = amount;
		return this;
	}

	public String getInvoiceFlag() {
		return invoiceFlag;
	}

	public ShipperOrderEntity setInvoiceFlag(String invoiceFlag) {
		this.invoiceFlag = invoiceFlag;
		return this;
	}

	public String getPayPeriod() {
		return payPeriod;
	}

	public ShipperOrderEntity setPayPeriod(String payPeriod) {
		this.payPeriod = payPeriod;
		return this;
	}

	public String getCarrier() {
		return carrier;
	}

	public ShipperOrderEntity setCarrier(String carrier) {
		this.carrier = carrier;
		return this;
	}

	public String getCarrierMobile() {
		return carrierMobile;
	}

	public ShipperOrderEntity setCarrierMobile(String carrierMobile) {
		this.carrierMobile = carrierMobile;
		return this;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public ShipperOrderEntity setStatusCode(String statusCode) {
		this.statusCode = statusCode;
		return this;
	}

	public String getStatusCodeDesc() {
		return statusCodeDesc;
	}

	public ShipperOrderEntity setStatusCodeDesc(String statusCodeDesc) {
		this.statusCodeDesc = statusCodeDesc;
		return this;
	}

	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getAddrFrom() {
		return addrFrom;
	}

	public void setAddrFrom(String addrFrom) {
		this.addrFrom = addrFrom;
	}

	public String getAddrTo() {
		return addrTo;
	}

	public void setAddrTo(String addrTo) {
		this.addrTo = addrTo;
	}


	public Double getCarriageDeal() {
		return carriageDeal;
	}

	public void setCarriageDeal(Double carriageDeal) {
		this.carriageDeal = carriageDeal;
	}

	public Double getAmountDeal() {
		return amountDeal;
	}

	public void setAmountDeal(Double amountDeal) {
		this.amountDeal = amountDeal;
	}

	public String getCarrierId() {
		return carrierId;
	}

	public void setCarrierId(String carrierId) {
		this.carrierId = carrierId;
	}

	public Double getGoodsWeight() {
		return goodsWeight;
	}

	public void setGoodsWeight(Double goodsWeight) {
		this.goodsWeight = goodsWeight;
	}
}
